#pragma once
#include <QWidget>
#include <memory>
#include <thread>
#include <qmutex.h>
#include <qqueue.h>
#include <qevent.h>
#include <vector>

namespace Ui {
    class PreviewerWidget;
}

class PreviewerWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PreviewerWidget(QWidget* parent = nullptr);
    ~PreviewerWidget();

    void init_ctrl();

protected:
    void paintEvent(QPaintEvent*);

private:
    Ui::PreviewerWidget* ui;
};